package com.system.ad.service.impl;

import com.system.ad.utils.PageUtils;
import com.system.ad.utils.Query;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.system.ad.dao.UnitItDao;
import com.system.ad.entity.UnitItEntity;
import com.system.ad.service.UnitItService;


@Service("unitItService")
public class UnitItServiceImpl extends ServiceImpl<UnitItDao, UnitItEntity> implements UnitItService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<UnitItEntity> page = this.page(
                new Query<UnitItEntity>().getPage(params),
                new QueryWrapper<UnitItEntity>()
        );

        return new PageUtils(page);
    }

}